<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
      <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
      <title>
          <fmt:message key="titulo-login"/>
      </title>
      <link rel="stylesheet" href="${pageScope.request.contextPath}css/estilos.css" media="all"/>
      <link rel="stylesheet" href="${pageScope.request.contextPath}css/bootstrap.css" media="all"/>
     
</head>
<body  class="body">
  <div id="image-logo">
     <c:import url="${pageScope.request.contextPath}/imports/fundo.jsp"/>
   </div>
    <div id="logo">
         <c:import url="${pageScope.request.contextPath}/imports/fundo2palha.jsp"/>
      </div>
  <div id="barra-titulo">
        <c:import url="${pageScope.request.contextPath}/imports/barraTitulo.jsp"/> 
  </div>
  <div id="conteudo-logomarca">
          <img src="img/logomarca.jpg">
          <p>
              <fmt:message key="conteudo-logomarca"/>
          </p>
      </div>
      <div id="red-login">

		<p>
			<fmt:message key="incentivo-login" />
			<br />
			</p>
	</div>
  
	<div id="logar">
	  <c:if test="${sucessoCadastro != null }">
		<font class="sucesso"><fmt:message key="sucesso-cadastro" /></font>
	  </c:if>
	  <c:if test="${erroProcessamento != null }">
		<font class="sucesso"> <fmt:message key="erroProcessamento" /></font>
	  </c:if>
	  <c:if test="${precisoLogar != null }">
		<font class="erro"><fmt:message key="necessarioLogin" /></font>
	  </c:if>
	  <c:if test="${sucessoExcluir != null }">
		<font class="sucesso"><fmt:message key="sucesso-excluir-user" /></font>
	  </c:if>
	  <c:if test="${falhaExcluir != null }">
		<font class="erro"><fmt:message key="erro-excluir-user" /></font>
	  </c:if>
	 <br/><br/>
     <form name="form" action="controleuser" method="post">
       <input type="hidden" name="acao" value="logar"/>
      <table>
         <tr>
		    <td>
			   <label><fmt:message key="login" /></label> 
			</td>
		    <td>
			   <input	type="text" name="login" value="${param.login}" size="35" />
			   <c:if test="${semCadastro != null}">
			  	 <font class="erro"><fmt:message key="sem-cadastro-login" /></font>
			   </c:if>
			</td>
	      </tr>
		  <tr>
		     <td>
			    <label><fmt:message key="senha" /></label> 
			 </td>
			 <td>
			    <input type="password" id="inputPassword" name="senha" value="${param.senha}" size="35" />
			    <c:if test="${erroSenha != null}">
					<font class="erro"><fmt:message key="erroSenha" /></font>
				 </c:if>
			 </td>
		   </tr>
      </table>
      <input type="submit" class="btn btn-primary" value='<fmt:message key="logar"/>'/>
      <input type="reset" class="btn" value='<fmt:message key="reset"/>'/>
    </form>
  </div>
</body>
</html>